package com.api.devices.domain.vo.tracing.intergration;

import com.api.common.config.ApiConfig;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

@Getter
@Setter
public class IntergrationVo {
    private String monitoredCode;
    private String datCol;
    private Double timestampGenerate;
    private String pixelKey;
    private String tableName;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    public void initTableName() {
//        this.tableName = ApiConfig.getTenant() + "_" + monitoredCode + "_tracing_intergration";
        this.tableName = monitoredCode + "_tracing_intergration";
    }
}
